[FileBackend] Added doQuickOperations() function for things like purging thumbnails.
authorAaron <aschulz@wikimedia.org>
Wed, 16 May 2012 00:42:20 +0000 (17:42 -0700)
committerAaron <aschulz@wikimedia.org>
Wed, 16 May 2012 17:30:34 +0000 (10:30 -0700)
commit957f09b8a4df2619801be847b7f6739ec494e856
tree46ff5a70013f9b4d93f11436da48ba3c6eb92b52
parentdf7b1cc716c262de8f7f95bfa6fda917edb54015
[FileBackend] Added doQuickOperations() function for things like purging thumbnails.

* doQuickOperations() lets us do things like purge thumbnails as fast as possible.
  Stat calls, SHA1 checks, and RTTs in general are avoided. It also avoids the
  slowness of lazy population of thumbnail SHA1s in Swift (for those made by rewrite.py).
* Removed supportedOperations() to avoid the extra complexity.
* Made a few variable type and exception documentation cleanups.
* Cleaned up unit test file removal a bit and made some functions private.

Change-Id: I6922368c6af7752a6927d96402519132203108a1
includes/filerepo/backend/FileBackend.php
includes/filerepo/backend/FileBackendMultiWrite.php
includes/filerepo/backend/FileBackendStore.php
includes/filerepo/backend/FileOpBatch.php
tests/phpunit/includes/filerepo/FileBackendTest.php